package net.huashitong.scheduling.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

import net.huashitong.scheduling.entity.CoordinationIssues;
import net.huashitong.scheduling.filter.ProjectFilter;

@Repository
public class CoordinationIssuesDao extends StringDao<CoordinationIssues>{ 
    public List<CoordinationIssues>  queryCoordinationIssuesByStatus(ProjectFilter filter){
    	GenericQuery query = createQuery("obj");
    	query.append(" and obj.status = :status").setParam("status",filter.getStatus());
    	return query.listResult();
    }
}
